//
//  LCYTopicList.m
//  EPA
//
//  Created by lanou3g on 16/4/22.
//  Copyright © 2016年 liu. All rights reserved.
//

#import "LCYTopicList.h"
#import "LCYTopicTextModel.h"
#import "LCYTopicCoverimgModel.h"

@implementation LCYTopicList

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    
}

+ (instancetype)modelWithDictionary:(NSDictionary *)dictinary {
    NSString *coverimg = dictinary[@"coverimg"];
    if (coverimg.length == 0) {
        LCYTopicTextModel *textModel = [[LCYTopicTextModel alloc]init];
        [textModel setValuesForKeysWithDictionary:dictinary];
        return textModel;
    }
    LCYTopicCoverimgModel *coverimgModel = [[LCYTopicCoverimgModel alloc]init];
    [coverimgModel setValuesForKeysWithDictionary:dictinary];
    return coverimgModel;
}

@end
